using System;
using UnityEngine;

[Serializable]
public class ShowInterstitial : MonoBehaviour
{
	public int count;

	public GameObject ads;

	public void Start()
	{
		if (PlayerPrefs.GetInt("tmp") != 7)
		{
			count = PlayerPrefs.GetInt("Count2");
			count++;
			if (count > 3)
			{
				UnityEngine.Object.Instantiate(ads);
			}
			count = 0;
			if (count < 0)
			{
				count = 0;
			}
			PlayerPrefs.SetInt("Count2", count);
		}
	}

	public void Main()
	{
	}
}
